home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
prog
/
tpex.arj
/
C8REVEX1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-09-04
|
869b
|
39 lines
{
Programming in Turbo Pascal.
Turbo Pascal By Example By Greg Perry.
Chapter 8 Review Exercise #1.
Robert E. Wade 9-4-93
}
PROGRAM StringVariables;
USES Crt, Printer;
CONST Spc = ' ';
VAR FirstName: STRING[30];
MiddleName: STRING[30];
LastName: STRING[30];
BEGIN
CLRSCR;
{ Assign data to variables }
FirstName := 'Robert';
MiddleName := 'Eric';
LastName := 'Wade';
{ Display the data to the screen }
WRITELN( 'First Name is: ', Spc:1, Firstname );
WRITELN( 'Middle Name is: ', MiddleName );
WRITELN( 'Last Name is: ', Spc:2, LastName );
{ Print the data on a printer }
WRITELN(LST, 'First Name is: ', Spc:1, Firstname );
WRITELN(LST, 'Middle Name is: ', MiddleName );
WRITELN(LST, 'Last Name is: ', Spc:2, LastName );
END.